package com.wtwd.device.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wtwd.device.model.entity.DialManagement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * @author ljiong
 * @date 2021/08/07
 * @description
 */
@Mapper
public interface DialMapper {
    IPage<DialManagement> getDialListByConditions(@Param("searchMap") HashMap<Object, Object> searchMap,@Param("page") IPage<Object> page);

    Integer addDialManagement(DialManagement dialManagement);

    Integer deleteDial(@Param("id") Integer id);

    Integer updateDial(DialManagement dialManagement);

    List<DialManagement> getDialListByConditions(@Param("searchMap") HashMap<Object, Object> searchMap);

    DialManagement getDialByDialId(@Param("dialId") String dialId);

    List<DialManagement> getDialManagementByLikeWatchId(@Param("watchId") String watchId);
}
